 //控制层 
app.controller('indexController' ,function($scope,$controller   ,loginService){
	
	$controller('baseController',{$scope:$scope});//继承
	
    //1.得到当前登录的用户名
	$scope.loginName=()=>{
		loginService.loginName().success(response =>{
			$scope.name = response.name;
		} )
	}
});	
